Skip to content

Conversation

@hnrklssn
Copy link
Member

@hnrklssn hnrklssn commented Nov 6, 2025

This adds the -Rmacro-expansions flag. It provides similar functionality to -dump-macro-expansions, but instead of dumping the macro expansion to stderr, it emits it line by line as remarks. This is useful for testing with -verify, where both macro expansion content and warnings need to be tested at the same time.

@hnrklssn
Copy link
Member Author

hnrklssn commented Nov 6, 2025

@swift-ci please smoke test

This adds the -Rmacro-expansions flag. It provides similar functionality
to -dump-macro-expansions, but instead of dumping the macro expansion to
stderr, it emits it line by line as remarks. This is useful for testing
with -verify, where both macro expansion content and warnings need to be
tested at the same time.
@hnrklssn hnrklssn force-pushed the verify-expansion-content branch from 4f9e31e to 040c9e6 Compare November 6, 2025 02:45
@hnrklssn
Copy link
Member Author

hnrklssn commented Nov 6, 2025

@swift-ci please please smoke test

@hnrklssn
Copy link
Member Author

hnrklssn commented Nov 6, 2025

@swift-ci please smoke test

1 similar comment
@hnrklssn
Copy link
Member Author

hnrklssn commented Nov 7, 2025

@swift-ci please smoke test

@hnrklssn
Copy link
Member Author

hnrklssn commented Nov 7, 2025

Failed Tests (1):
  lldb-api :: commands/platform/launchgdbserver/TestPlatformLaunchGDBServer.py

@hnrklssn
Copy link
Member Author

hnrklssn commented Nov 7, 2025

@swift-ci please smoke test windows platform

@hnrklssn
Copy link
Member Author

Unless there are any objections I'll merge this tomorrow. I'm open to changing the format of the macro content: |%0| remark.

@hnrklssn hnrklssn merged commit 54cfd7a into swiftlang:main Nov 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant